package com.ruoyi.crm.service;

import java.util.List;
import com.ruoyi.crm.domain.OrderPurchase;

/**
 * 采购订单Service接口
 *
 * @author ruoyi
 * @date 2021-08-31
 */
public interface IOrderPurchaseService
{
    /**
     * 查询采购订单
     *
     * @param id 采购订单主键
     * @return 采购订单
     */
    public OrderPurchase selectOrderPurchaseById(String id);

    /**
     * 查询采购订单列表
     *
     * @param orderPurchase 采购订单
     * @return 采购订单集合
     */
    public List<OrderPurchase> selectOrderPurchaseList(OrderPurchase orderPurchase);

    /**
     * 新增采购订单
     *
     * @param orderPurchase 采购订单
     * @return 结果
     */
    public int insertOrderPurchase(OrderPurchase orderPurchase);

    /**
     * 修改采购订单
     *
     * @param orderPurchase 采购订单
     * @return 结果
     */
    public int updateOrderPurchase(OrderPurchase orderPurchase);

    /**
     * 批量删除采购订单
     *
     * @param ids 需要删除的采购订单主键集合
     * @return 结果
     */
    public int deleteOrderPurchaseByIds(String[] ids);

    /**
     * 删除采购订单信息
     *
     * @param id 采购订单主键
     * @return 结果
     */
    public int deleteOrderPurchaseById(String id);
}